package cn.youyeku.zsxh.Utils;

import android.content.Context;
import android.text.InputType;
import android.view.View;
import android.widget.TextView;

import com.afollestad.materialdialogs.MaterialDialog;

/**
 * Created by youye on 17-5-25.
 */

public class DialogUtils {


    public  static void changeTextView(final Context context, final TextView tv,String title){
        new MaterialDialog.Builder(context)
                .title(title)
                .inputType(InputType.TYPE_CLASS_TEXT)
                //参数1：hint 参数2：自动填充的文字 参数3：监听
                .input(null, null, new MaterialDialog.InputCallback() {
                    @Override
                    public void onInput(MaterialDialog dialog, CharSequence input) {
                        tv.setText(input);
                    }
                }).show();
    }




}
